Skip to content

Conversation

leejet
Copy link
Owner

@leejet leejet commented Oct 14, 2025

With sdxl_vae-fp16-fix.safetensors

.\bin\Release\sd.exe -m ..\..\stable-diffusion-webui\models\Stable-diffusion\sd_xl_base_1.0.safetensors -p "a lovely cat" -v --vae ..\..\stable-diffusion-webui\models\VAE\sdxl_vae-fp16-fix.safetensors -H 1024 -W 1024
output

Without sdxl_vae-fp16-fix.safetensors

.\bin\Release\sd.exe -m ..\..\stable-diffusion-webui\models\Stable-diffusion\sd_xl_base_1.0.safetensors -p "a lovely cat" -v -H 1024 -W 1024
output

@wbruna
Copy link
Contributor

wbruna commented Oct 14, 2025

Works well with a few problematic checkpoints here. Thanks!

And after removing the check for external files, it's working even for a few alternative VAEs that always gave me black outputs. Any reason for not enabling the scaling factor for SDXL every time?

@leejet
Copy link
Owner Author

leejet commented Oct 15, 2025

The VAE conv scaling may slightly affect image quality and generation speed in some cases, so I prefer to avoid using it whenever possible.
I’ve added a --force-sdxl-vae-conv-scale option to force-enable conv scaling for the SDXL VAE, which should meet your needs.

@leejet leejet merged commit 40a6a87 into master Oct 15, 2025
9 checks passed
@wbruna
Copy link
Contributor

wbruna commented Oct 15, 2025

And after removing the check for external files, it's working even for a few alternative VAEs that always gave me black outputs.

FWIW, vae-conv-direct also seems to be enough to avoid the issue for the problematic VAEs (although it's far slower on ROCm).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants